package com.ssy.lingxi.order.repository;

import com.ssy.lingxi.order.entity.MemberParameterDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

/**
 * 会员通用支付参数设置Jpa仓库
 * @author 万宁
 * @version 2.0.0
 * @date 2021-11-26
 */
@Repository
public interface MemberParameterRepository extends JpaRepository<MemberParameterDO, Long>, JpaSpecificationExecutor<MemberParameterDO> {
    MemberParameterDO findFirstByPayChannel(Integer payChannel);

    @Transactional
    void deleteByPayChannel(Integer payChannel);
}
